翻訳と辞書
Words near each other
・ Constant de Kerchove de Denterghem
・ Constant Detré
・ Constant Djakpa
・ Constant dollar plan
・ Constant Dullaart
・ Constant Dutilleux
・ Constant elasticity of substitution
・ Constant elasticity of transformation
・ Constant elasticity of variance model
・ Constant Energy Struggles
・ Constant factor rule in differentiation
・ Constant factor rule in integration
・ Constant false alarm rate
・ Constant Feith
・ Constant Ferdinand Burille
Constant folding
・ Constant Fornerod
・ Constant Fouard
・ Constant fraction discriminator
・ Constant Friendship, Maryland
・ Constant function
・ Constant Future
・ Constant Gardener Trust
・ Constant Girard
・ Constant Hawk
・ Constant Hitmaker
・ Constant Hot Water
・ Constant Hot Water (film)
・ Constant Huret
・ Constant Huysmans


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Constant folding : ウィキペディア英語版
Constant folding
Constant folding and constant propagation are related compiler optimizations used by many modern compilers. An advanced form of constant propagation known as sparse conditional constant propagation can more accurately propagate constants and simultaneously remove dead code.
== Constant folding ==

Constant folding is the process of recognizing and evaluating constant expressions at compile time rather than computing them at runtime. Terms in constant expressions are typically simple literals, such as the integer literal 2, but they may also be variables whose values are known at compile time. Consider the statement:

i = 320
* 200
* 32;

Most modern compilers would not actually generate two multiply instructions and a store for this statement. Instead, they identify constructs such as these and substitute the computed values at compile time (in this case, 2,048,000). The resulting code would load the computed value and store it rather than loading and multiplying several values.
Constant folding can even use arithmetic identities. When x is an integer type, the value of 0
* x
is zero even if the compiler does not know the value of x.
Constant folding may apply to more than just numbers. Concatenation of string literals and constant strings can be constant folded. Code such as "abc" + "def" may be replaced with "abcdef".
Constant folding can be done in a compiler's front end on the IR tree that represents the high-level source language, before it is translated into three-address code, or in the back end, as an adjunct to constant propagation.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Constant folding」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.